package org.example.seckilljava.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("t_seckill_record")
public class SeckillRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long goodsId;
    private String secNum;
    private String orderNum;
    private Float price;
    private Integer status;
    private LocalDateTime createTime;
    private LocalDateTime modifyTime;

    public SeckillRecord() {
    }

    public SeckillRecord(Long userId, Long goodsId, String secNum, String orderNum, Float price, Integer status) {
        this.userId = userId;
        this.goodsId = goodsId;
        this.secNum = secNum;
        this.orderNum = orderNum;
        this.price = price;
        this.status = status;
    }
}